<template>
    <van-form @submit="submit" style="margin:5px 10px;">
        <van-field
            v-model="reason"
            name="退款原因"
            label="退款原因"
            placeholder="退款原因"
            :rules="[{ required: true, message: '请填写退款原因' }]"
            type="textarea"
            rows="3"
            autosize
        />
        <div style="margin: 16px;">
            <van-button round block type="info" native-type="submit">提交</van-button>
        </div>
    </van-form>
</template>

<script>
    export default {
        props: {
            value: {
                type: Object,
                default: function () {
                    return {}
                }
            },
            data:{
                type: Object,
                default: function () {
                    return {}
                }
            }
        },
        data() {
            return {
                reason:""
            }
        },
        watch: {
        },
        computed: {
            
        },

        methods: {
            submit(){
                this.$api.applyordertk({
                    ordercode:this.$route.query.rowguid
                }).then((data)=>{
                    
                })
            }
        },
        mounted: function () {

        }
    };
</script>
<style lang="less" scoped>
    
</style>